#coding:utf-8
=begin
 商户控制器类 
=end
class CustomerSessionsController < ApplicationController
=begin
 商户登录方法 
=end
  def new
    @customer_session = CustomerSession.new
  end
  
=begin
 保存商户登录信息 
=end
  def create
    @customer_session = CustomerSession.new(params[:customer_session])
    if @customer_session.save
      flash[:notice] = "登录成功"
      redirect_to root_path
    else
      render :new
    end
  end

=begin
 商户注销方法 
=end
  def destroy
    @customer_session = CustomerSession.find
    @customer_session.destroy
    redirect_to root_path
  end
end
